<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Elisa3: mirf.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Elisa3
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('mirf_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">mirf.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="mirf_8h_source.html">mirf.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="n_r_f24_l01_8h_source.html">nRF24L01.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="spi_8h_source.html">spi.h</a>&quot;</code><br/>
<code>#include &lt;avr/io.h&gt;</code><br/>
<code>#include &lt;avr/interrupt.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a03ecb6facc1a13c63a8d63e3a33273dd">TX_POWERUP</a>&#160;&#160;&#160;<a class="el" href="mirf_8h.html#a5d5e84dcab565368222cea7bc0011393">mirf_config_register</a>(<a class="el" href="n_r_f24_l01_8h.html#a76ea3cf49247a07c54b3db005a3c7f57">CONFIG</a>, <a class="el" href="mirf_8h.html#af6b9651c5fe45bd6b8189e46b087b08b">mirf_CONFIG</a> | ( (1&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#af0dbd9e4c17ba0db357fcb2cedd4aa6d">PWR_UP</a>) | (0&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#a0b4d92f3ecccb150d4cb1cb5d0f9d4e6">PRIM_RX</a>) ) )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a5a9459e1d476163f48390845f47dad43">RX_POWERUP</a>&#160;&#160;&#160;<a class="el" href="mirf_8h.html#a5d5e84dcab565368222cea7bc0011393">mirf_config_register</a>(<a class="el" href="n_r_f24_l01_8h.html#a76ea3cf49247a07c54b3db005a3c7f57">CONFIG</a>, <a class="el" href="mirf_8h.html#af6b9651c5fe45bd6b8189e46b087b08b">mirf_CONFIG</a> | ( (1&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#af0dbd9e4c17ba0db357fcb2cedd4aa6d">PWR_UP</a>) | (1&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#a0b4d92f3ecccb150d4cb1cb5d0f9d4e6">PRIM_RX</a>) ) )</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a97564906ec706b6cd5bf1ef98e463388">mirf_init</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#aa6ad63edd063386a12847814d633afd4">mirf_config</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a86c04e7d5db441a8517fcef90904f2cd">mirf_set_RADDR</a> (uint8_t *adr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a23432db3b29568325b53d4932b8e5732">mirf_set_TADDR</a> (uint8_t *adr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a13853a5c6d8ce91eafe92a76abc2b287">mirf_data_ready</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#abffdd6a38e84ae4d35372f5b32e752ab">rx_fifo_is_empty</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#aa080fd5703fd298c641f684d8d806392">flush_rx_fifo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a44dfee6f04ab5eb4e267792297969de5">mirf_get_data</a> (uint8_t *data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a5d5e84dcab565368222cea7bc0011393">mirf_config_register</a> (uint8_t reg, uint8_t value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a2ec1cb46658dbf6175d5f3578518275d">mirf_read_register</a> (uint8_t reg, uint8_t *value, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a2e57e77443c90138e05be4139822e6e9">mirf_write_register</a> (uint8_t reg, uint8_t *value, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#aa02825055cbdbe5f403cb1bf0bbf9609">mirf_send</a> (uint8_t *value, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a97e38a1b97f3ccd23fae567bc0cb99aa">writeAckPayload</a> (unsigned char *data, unsigned char size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a0ec5584f9418f0ebab4a4819e45fc350">readPayloadWidthFromTopFifo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a10acc162380a28be92ce3646c66ac12a">readPayloadWidthFromPipe0</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#ae0a005d5875fc1869bbe028ab900d12f">flushTxFifo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a8cfe88fad1863193840e1ef18336002c">handleRFCommands</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#ad6cc6fe67896c7b1ff26b46cad027830">rfEnableDebugMode</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a29528c378c2d7d5bfa913f0f627067fe">rfDisableDebugMode</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a0500c9d04e87b0abe1f755a5c6fce8b5">rfDebugSendData</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#a99e8fb5f1f93e2038f5956fe52a6d1dc">rfDebugNextPacket</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">volatile uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mirf_8c.html#aef03916698af7ecc5a0bd95efd846f42">PTX</a></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a5a9459e1d476163f48390845f47dad43"></a><!-- doxytag: member="mirf.c::RX_POWERUP" ref="a5a9459e1d476163f48390845f47dad43" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="mirf_8c.html#a5a9459e1d476163f48390845f47dad43">RX_POWERUP</a>&#160;&#160;&#160;<a class="el" href="mirf_8h.html#a5d5e84dcab565368222cea7bc0011393">mirf_config_register</a>(<a class="el" href="n_r_f24_l01_8h.html#a76ea3cf49247a07c54b3db005a3c7f57">CONFIG</a>, <a class="el" href="mirf_8h.html#af6b9651c5fe45bd6b8189e46b087b08b">mirf_CONFIG</a> | ( (1&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#af0dbd9e4c17ba0db357fcb2cedd4aa6d">PWR_UP</a>) | (1&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#a0b4d92f3ecccb150d4cb1cb5d0f9d4e6">PRIM_RX</a>) ) )</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a03ecb6facc1a13c63a8d63e3a33273dd"></a><!-- doxytag: member="mirf.c::TX_POWERUP" ref="a03ecb6facc1a13c63a8d63e3a33273dd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="mirf_8c.html#a03ecb6facc1a13c63a8d63e3a33273dd">TX_POWERUP</a>&#160;&#160;&#160;<a class="el" href="mirf_8h.html#a5d5e84dcab565368222cea7bc0011393">mirf_config_register</a>(<a class="el" href="n_r_f24_l01_8h.html#a76ea3cf49247a07c54b3db005a3c7f57">CONFIG</a>, <a class="el" href="mirf_8h.html#af6b9651c5fe45bd6b8189e46b087b08b">mirf_CONFIG</a> | ( (1&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#af0dbd9e4c17ba0db357fcb2cedd4aa6d">PWR_UP</a>) | (0&lt;&lt;<a class="el" href="n_r_f24_l01_8h.html#a0b4d92f3ecccb150d4cb1cb5d0f9d4e6">PRIM_RX</a>) ) )</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="aa080fd5703fd298c641f684d8d806392"></a><!-- doxytag: member="mirf.c::flush_rx_fifo" ref="aa080fd5703fd298c641f684d8d806392" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#aa080fd5703fd298c641f684d8d806392">flush_rx_fifo</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae0a005d5875fc1869bbe028ab900d12f"></a><!-- doxytag: member="mirf.c::flushTxFifo" ref="ae0a005d5875fc1869bbe028ab900d12f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#ae0a005d5875fc1869bbe028ab900d12f">flushTxFifo</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8cfe88fad1863193840e1ef18336002c"></a><!-- doxytag: member="mirf.c::handleRFCommands" ref="a8cfe88fad1863193840e1ef18336002c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a8cfe88fad1863193840e1ef18336002c">handleRFCommands</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa6ad63edd063386a12847814d633afd4"></a><!-- doxytag: member="mirf.c::mirf_config" ref="aa6ad63edd063386a12847814d633afd4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#aa6ad63edd063386a12847814d633afd4">mirf_config</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5d5e84dcab565368222cea7bc0011393"></a><!-- doxytag: member="mirf.c::mirf_config_register" ref="a5d5e84dcab565368222cea7bc0011393" args="(uint8_t reg, uint8_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a5d5e84dcab565368222cea7bc0011393">mirf_config_register</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a13853a5c6d8ce91eafe92a76abc2b287"></a><!-- doxytag: member="mirf.c::mirf_data_ready" ref="a13853a5c6d8ce91eafe92a76abc2b287" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="mirf_8h.html#a13853a5c6d8ce91eafe92a76abc2b287">mirf_data_ready</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a44dfee6f04ab5eb4e267792297969de5"></a><!-- doxytag: member="mirf.c::mirf_get_data" ref="a44dfee6f04ab5eb4e267792297969de5" args="(uint8_t *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a44dfee6f04ab5eb4e267792297969de5">mirf_get_data</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a97564906ec706b6cd5bf1ef98e463388"></a><!-- doxytag: member="mirf.c::mirf_init" ref="a97564906ec706b6cd5bf1ef98e463388" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a97564906ec706b6cd5bf1ef98e463388">mirf_init</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2ec1cb46658dbf6175d5f3578518275d"></a><!-- doxytag: member="mirf.c::mirf_read_register" ref="a2ec1cb46658dbf6175d5f3578518275d" args="(uint8_t reg, uint8_t *value, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a2ec1cb46658dbf6175d5f3578518275d">mirf_read_register</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa02825055cbdbe5f403cb1bf0bbf9609"></a><!-- doxytag: member="mirf.c::mirf_send" ref="aa02825055cbdbe5f403cb1bf0bbf9609" args="(uint8_t *value, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#aa02825055cbdbe5f403cb1bf0bbf9609">mirf_send</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a86c04e7d5db441a8517fcef90904f2cd"></a><!-- doxytag: member="mirf.c::mirf_set_RADDR" ref="a86c04e7d5db441a8517fcef90904f2cd" args="(uint8_t *adr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a86c04e7d5db441a8517fcef90904f2cd">mirf_set_RADDR</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>adr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a23432db3b29568325b53d4932b8e5732"></a><!-- doxytag: member="mirf.c::mirf_set_TADDR" ref="a23432db3b29568325b53d4932b8e5732" args="(uint8_t *adr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a23432db3b29568325b53d4932b8e5732">mirf_set_TADDR</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>adr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2e57e77443c90138e05be4139822e6e9"></a><!-- doxytag: member="mirf.c::mirf_write_register" ref="a2e57e77443c90138e05be4139822e6e9" args="(uint8_t reg, uint8_t *value, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a2e57e77443c90138e05be4139822e6e9">mirf_write_register</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a10acc162380a28be92ce3646c66ac12a"></a><!-- doxytag: member="mirf.c::readPayloadWidthFromPipe0" ref="a10acc162380a28be92ce3646c66ac12a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="mirf_8h.html#a10acc162380a28be92ce3646c66ac12a">readPayloadWidthFromPipe0</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0ec5584f9418f0ebab4a4819e45fc350"></a><!-- doxytag: member="mirf.c::readPayloadWidthFromTopFifo" ref="a0ec5584f9418f0ebab4a4819e45fc350" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="mirf_8h.html#a0ec5584f9418f0ebab4a4819e45fc350">readPayloadWidthFromTopFifo</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a99e8fb5f1f93e2038f5956fe52a6d1dc"></a><!-- doxytag: member="mirf.c::rfDebugNextPacket" ref="a99e8fb5f1f93e2038f5956fe52a6d1dc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a99e8fb5f1f93e2038f5956fe52a6d1dc">rfDebugNextPacket</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0500c9d04e87b0abe1f755a5c6fce8b5"></a><!-- doxytag: member="mirf.c::rfDebugSendData" ref="a0500c9d04e87b0abe1f755a5c6fce8b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a0500c9d04e87b0abe1f755a5c6fce8b5">rfDebugSendData</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a29528c378c2d7d5bfa913f0f627067fe"></a><!-- doxytag: member="mirf.c::rfDisableDebugMode" ref="a29528c378c2d7d5bfa913f0f627067fe" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a29528c378c2d7d5bfa913f0f627067fe">rfDisableDebugMode</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad6cc6fe67896c7b1ff26b46cad027830"></a><!-- doxytag: member="mirf.c::rfEnableDebugMode" ref="ad6cc6fe67896c7b1ff26b46cad027830" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#ad6cc6fe67896c7b1ff26b46cad027830">rfEnableDebugMode</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abffdd6a38e84ae4d35372f5b32e752ab"></a><!-- doxytag: member="mirf.c::rx_fifo_is_empty" ref="abffdd6a38e84ae4d35372f5b32e752ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="mirf_8h.html#abffdd6a38e84ae4d35372f5b32e752ab">rx_fifo_is_empty</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a97e38a1b97f3ccd23fae567bc0cb99aa"></a><!-- doxytag: member="mirf.c::writeAckPayload" ref="a97e38a1b97f3ccd23fae567bc0cb99aa" args="(unsigned char *data, unsigned char size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="mirf_8h.html#a97e38a1b97f3ccd23fae567bc0cb99aa">writeAckPayload</a> </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="aef03916698af7ecc5a0bd95efd846f42"></a><!-- doxytag: member="mirf.c::PTX" ref="aef03916698af7ecc5a0bd95efd846f42" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint8_t <a class="el" href="mirf_8c.html#aef03916698af7ecc5a0bd95efd846f42">PTX</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="mirf_8c.html">mirf.c</a>      </li>

    <li class="footer">Generated on Thu Dec 4 2014 08:30:50 for Elisa3 by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
